package com.itmuch.cloud.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author: chenhs
 * @date: Created in 19:30 2020/2/15
 **/
@Service
public class HelloService {


    @Autowired
    private RestTemplate restTemplate;

    public String hiService(String name) {
        return restTemplate.getForObject("http://microservice-provider-user/hi?name=" + name, String.class);
    }

}
